<template>
  <div>
    <swiper :options="options">
      <swiper-slide v-for="img in imgs" :key="img.pic">
        <div class="demo">
          <img :src="img.pic" />
          </div>
      </swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>
<script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.css";
export default {
  props:{
    imgs:Array
  },
  data() {
    return {
      options: {
        autoplay: true,
        pagination: {
          el: ".swiper-pagination",
        },
      },
    };
  },
  components: {
    Swiper,
    SwiperSlide,
  },
};
</script>
<style scoped lang="less">
.demo {
  width: 100%;
  height: 100%;
  background-color: var(--cy-Color);
}
img {
  width: 100%;
  display: block;
}
</style>